package com.example.timmy.myapplication;

import android.app.Application;
import android.content.Context;

import com.iflytek.cloud.SpeechUtility;

/**
 * @Auther: Timmy
 * @Data: 2017/8/29
 * @Fuction:
 */

public class MyApplication extends Application {

    public static Context mContext;

    @Override
    public void onCreate() {
        // SpeechUtility.createUtility(this, SpeechConstant.APPID + getString(R.string.app_id));

        SpeechUtility.createUtility(MyApplication.this, "appid=" + getString(R.string.app_id));
        mContext = this;
        super.onCreate();
    }

    public static Context getContext() {
        return mContext;
    }
}
